// Simple1.cpp : Defines the entry point for the console application.
//
 
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include <string>
 
#define WIN32_LEAN_AND_MEAN
 
// da capire:
// http://dsrg.mff.cuni.cz/~ceres/sch/osy/text/ch03s02s02.php
 
int _tmain(int argc, _TCHAR* argv[])
{
	int n = 1;
	if (argc>1)
	{
		n = _ttoi(argv[1]);
	}
	int a=0;
	int i = 0;
	std::string line;
	std::cout << "begin\r\n";
	std::getline(std::cin, line);

	for(i=0; i<n; i++)
	{
	 __asm 
	 { 
	  mov ecx, 40000000h 
	  mov eax, 0
loop0: 
	  inc eax
	  loop loop0
	  mov a, ebx
	 } 
	}
	std::cout << "end\r\n";
	return 0;
}
